import React,{Component} from 'react';
import {Link} from 'react-router-dom'
import './index.scss';
export default class NavItem extends Component{
    render(){
        const {curIdx,index,dataItem,onNavItemClick} = this.props;
        return(
            <div className={['nav-item',index===curIdx?'nav-current':''].join(' ')}></div>
        <Link>{dataItem.title}</Link>
        )
    }
}